<include file="public@header" />
</head>
<body>
    <div class="layui-fluid js-check-wrap">
        <div class="layui-card">
            <form method="post" class="js-ajax-form" action="{:url('AdminMessage/listOrder')}">
                <div class="layui-card-header well">
                    <div class="layui-col-xs6">
                        <h3>统计时间字段管理</h3>
                    </div>
                    <div class="layui-col-xs6 text-right">
                        <!-- 添加分类 -->
                        <a href="{:url('AdminMessage/addtime')}" class="layui-btn layui-btn-normal ">添加统计时间字段</a>
                        <!-- 保存排序 -->
                        <!-- <button type="submit" class="layui-btn layui-btn-warm js-ajax-submit">{:lang('SAVE_SORT')}</button> -->
                    </div>
                </div>

            <div class="layui-card-body">
                <table class="layui-table" >
                    <thead>
                        <tr>
                            <th width="50">ID</th>
                            <th>时间(小时)</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name="data" item="vo">
                        <tr>
                            
                            <td>{$vo.id}</td>
                            <td>{$vo.time}</td>
                            <td>
                                <a href="{:url('AdminMessage/edittime',array('id'=>$vo['id']))}" class="layui-btn layui-btn-xs">{:lang('EDIT')}</a>
                                
                                <a href="{:url('AdminMessage/deletetime',array('id'=>$vo['id']))}" class="js-ajax-delete layui-btn layui-btn-danger layui-btn-xs">{:lang('DELETE')}</a>
                            </td>
                        </tr>
                        </foreach>
                    </tbody>
                </table>
            </div>
        </form>
        </div>        
    </div>

<include file="public@footer"/>
